package top.aigoo.project01.mapper;

import org.apache.ibatis.annotations.Param;
import top.aigoo.project01.entity.UserAwardMap;

import java.util.List;

/**
 * @Description: 请填写该类完成的功能
 * @Author: Mr.OYSHUO.欧阳大叔  mail:1642302522@qq.com
 * @Version 1.0.0
 * @Date: 2021/9/28 21:39
 */
public interface UserAwardMapMapper {
    /**
     * 通过条件查询,列表
     */
    List<UserAwardMap> queryUserAwardMapList(
            @Param("userAwardCondition") UserAwardMap userAwardCondition,
            @Param("rowIndex") int rowIndex,
            @Param("pageSize") int pageSize);

    /**
     * 查询对应的总数
     */
    int queryUserAwardMapCount(@Param("userAwardCondition") UserAwardMap userAwardCondition);

    /**
     * 通过Id查询
     */
    UserAwardMap queryUserAwardMapById(long userAwardId);

    /**
     * 添加记录
     */
    int insertUserAwardMap(UserAwardMap userAwardMap);

    /**
     * 修改
     */
    int updateUserAwardMap(UserAwardMap userAwardMap);
}
